<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    
    <h:form>
        <p:slideMenu style="width: 99%;border: none; background: transparent;" backLabel="Atrás" >
            <p:menuitem value="Inicio" update=":panelPrincipalId" icon="fa fa-home">
                <f:setPropertyActionListener value="./pages/content/home.xhtml" target="#{navigationBean.navigationContent}"/>
            </p:menuitem>
            <p:submenu label="Socios" icon="fa fa-coffee">
                <p:menuitem value="Nuevo" update=":panelPrincipalId" icon="fa fa-plus-circle"
                            action="#{businessAssociateBean.initValues()}">
                    <f:setPropertyActionListener value="./pages/content/business_associate/new_associate.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Renovación" update=":panelPrincipalId" icon="fa fa-retweet"
                            action="#{businessAssociateBean.initValuesForRenovation()}">
                    <f:setPropertyActionListener value="./pages/content/business_associate/renovation_associate.xhtml" target="#{navigationBean.navigationContent}"/>                    
                </p:menuitem>   
                <p:menuitem value="Ver Socios" update=":panelPrincipalId" icon="fa fa-group"
                            action="#{businessAssociateBean.initValuesViewAssociate()}">
                    <f:setPropertyActionListener value="./pages/content/business_associate/view_associate.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
            <p:submenu label="Eventos" icon="fa fa-star-half-empty">
                <p:menuitem value="Crear Evento" update=":panelPrincipalId" icon="fa fa-bug"
                            action="#{meetingBean.initValues()}">
                    <f:setPropertyActionListener value="./pages/content/meeting/make_event.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Ver Mis Eventos" update=":panelPrincipalId" icon="fa fa-bug"
                            action="#{meetingBean.initValuesForViewTable()}">
                    <f:setPropertyActionListener value="./pages/content/meeting/view_event.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
            <p:submenu label="Empresa" icon="fa fa-plane">
                <p:menuitem value="Crear" icon="fa fa-user"
                            update=":panelPrincipalId"
                            action="#{companyBean.initValuesForCreateCompany()}">
                    <f:setPropertyActionListener value="./pages/content/user/create_company.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Ver Solicitudes" icon="fa fa-users"
                            update=":panelPrincipalId"
                            action="#{companyBean.initValuesForViewCompany()}">
                    <f:setPropertyActionListener value="./pages/content/user/view_company.xhtml" target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
            <!--
            <p:submenu label="Correos" icon="fa fa-envelope">
                <p:menuitem value="Correo Normal" icon="fa fa-envelope"
                            update=":panelPrincipalId"
                            action="#{eMailBean.initValuesSendEmail()}">
                    <f:setPropertyActionListener value="./pages/content/email/send_email.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Correo Personalizado" icon="fa fa-envelope-o"
                            update=":panelPrincipalId"
                            action="#{eMailBean.initValuesSendEmail()}">
                    <f:setPropertyActionListener value="./pages/content/email/send_email_other_people.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Servidor SMTP" icon="fa fa-cogs"
                            update=":panelPrincipalId">
                    <f:setPropertyActionListener value="./pages/content/email/configure_smtp_user.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
            -->
            <p:submenu label="Reportes" icon="fa fa-bar-chart-o">
                <p:menuitem value="Cantidad Mensual" icon="fa fa-bar-chart-o"
                            update=":panelPrincipalId"
                            action="#{reportBean.initValuesForReport()}">
                    <f:setPropertyActionListener value="./pages/content/report/report_associate.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Cruadro comparativo" icon="fa fa-bar-chart-o"
                            ajax="false"
                            action="#{reportBean.initValuesForComareBox()}">
                    <f:setPropertyActionListener value="./pages/content/report/compare_associate.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                    
                </p:menuitem>
                <!--
                <p:menuitem value="Carnet's Emitidos" icon="fa fa-bar-chart-o"
                            update=":panelPrincipalId"
                            action="#{reportBean.initReport()}">
                    <f:setPropertyActionListener value="./pages/content/report/report_total_carnet_emited.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                -->
            </p:submenu>
            <p:submenu label="Configuración" icon="fa fa-gears">
                <p:menuitem value="Beneficios" icon="fa fa-gift" 
                            action="#{benefitBean.initValues()}"
                            update=":panelPrincipalId">
                    <f:setPropertyActionListener value="./pages/content/configuration/benefit.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Aperturar Año" icon="fa fa-rocket" 
                            action="#{benefitBean.initValueApertureAssociate()}"
                            update=":panelPrincipalId">
                    <f:setPropertyActionListener value="./pages/content/configuration/new_aperture_associate.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
                <p:menuitem value="Mantenimiento CV" icon="fa fa-gear" 
                            update=":panelPrincipalId" action="#{cVBean.initValuesForRegister()}">
                    <f:setPropertyActionListener value="./pages/content/configuration/cv.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
        </p:slideMenu>
    </h:form>
        
</ui:composition>

